package FactoryMode.version2;

public class SimpleMain {

    public static void main(String[] args) {
        SimpleFactory simpleFactory=new SimpleFactory(); //实例不能调用static方法
        LeiFeng studentA=SimpleFactory.CreateLeiFeng("学雷锋的大学生");
        studentA.BuyRice();
        LeiFeng studentB=SimpleFactory.CreateLeiFeng("学雷锋的大学生");
        studentB.Sweep();
        LeiFeng studentC=SimpleFactory.CreateLeiFeng("学雷锋的大学生");
        studentC.Wash();



    }
}
